package com.yanqu.road.entity.cricket.court;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;


@FieldTypeAnnotation(tableName = "t_c_cricket_court_data")
public class CricketCourtData extends DataObject {

    @FieldTypeAnnotation(desc = "当前轮次")
    private int round;

    @FieldTypeAnnotation(desc = "是否已生成分组")
    private boolean generateGroup;

    @FieldTypeAnnotation(desc = "排行奖励是否已结算")
    private boolean rankReward;

    @FieldTypeAnnotation(desc = "结算时间")
    private long rewardTime;

    @FieldTypeAnnotation(desc = "结束时间,也是下一轮生成时间")
    private long endTime;

    @FieldTypeAnnotation(desc = "更新时间")
    private long updateTime;

    public CricketCourtData() {

    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        if (this.round != round) {
            this.round = round;
            this.setUpdateOption();
        }
    }

    public boolean isGenerateGroup() {
        return generateGroup;
    }

    public void setGenerateGroup(boolean generateGroup) {
        if (this.generateGroup != generateGroup) {
            this.generateGroup = generateGroup;
            this.setUpdateOption();
        }
    }

    public boolean isRankReward() {
        return rankReward;
    }

    public void setRankReward(boolean rankReward) {
        if (this.rankReward != rankReward) {
            this.rankReward = rankReward;
            this.setUpdateOption();
        }
    }

    public long getRewardTime() {
        return rewardTime;
    }

    public void setRewardTime(long rewardTime) {
        if (this.rewardTime != rewardTime) {
            this.rewardTime = rewardTime;
            this.setUpdateOption();
        }
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        if (this.endTime != endTime) {
            this.endTime = endTime;
            this.setUpdateOption();
        }
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        if (this.updateTime != updateTime) {
            this.updateTime = updateTime;
            this.setUpdateOption();
        }
    }
}
